200
How do I arrange my columns on multiple lines

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.HeaderHeight = 32
' oComboBox.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
var_Column = oComboBox.Columns.Add("")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.HTMLCaption = `Line 1<br>Line 2`"


199
How can I display all cells using HTML format

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("HTML").Def(17) = 1
var_Column = oComboBox.Columns.Add("HTML")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(17) = 1"

oComboBox.Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.")

198
How can I display all cells using multiple lines

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("MultipleLine").Def(16) = .f.
var_Column = oComboBox.Columns.Add("MultipleLine")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(16) = False"

' oComboBox.Columns.Add("SingleLine").Def(16) = .t.
var_Column1 = oComboBox.Columns.Add("SingleLine")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Def(16) = True"

var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1) = "this is a bit of long text that's displayed on a single line"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(`This is a bit of long text that should break the line`),1) = `this is a bit of long text that's displayed on a single line`"


197
How do change the vertical alignment for all cells in the column

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("MultipleLine").Def(16) = .f.
var_Column = oComboBox.Columns.Add("MultipleLine")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(16) = False"

' oComboBox.Columns.Add("VAlign").Def(6) = 2
var_Column1 = oComboBox.Columns.Add("VAlign")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Def(6) = 2"

var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(`This is a bit of long text that should break the line`),1) = `bottom`"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(`This is a bit of long text that should break the line`),1) = `bottom`"


196
How do change the foreground color for all cells in the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("ForeColor").Def(5) = 255
var_Column = oComboBox.Columns.Add("ForeColor")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(5) = 255"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

195
How do change the background color for all cells in the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("BackColor").Def(4) = 255
var_Column = oComboBox.Columns.Add("BackColor")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(4) = 255"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

194
How do I show buttons for all cells in the column

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.Columns.Add("Button")
	' var_Column.Def(2) = .t.
	oComboBox.TemplateDef = "dim var_Column"
	oComboBox.TemplateDef = var_Column
	oComboBox.Template = "var_Column.Def(2) = True"

	' var_Column.Def(3) = .t.
	oComboBox.TemplateDef = "dim var_Column"
	oComboBox.TemplateDef = var_Column
	oComboBox.Template = "var_Column.Def(3) = True"

oComboBox.Items.AddItem(" Button 1 ")
oComboBox.Items.AddItem(" Button 2 ")

193
How do I show buttons for all cells in the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Button").Def(2) = .t.
var_Column = oComboBox.Columns.Add("Button")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(2) = True"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

192
How do I display radio buttons for all cells in the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Radio").Def(1) = .t.
var_Column = oComboBox.Columns.Add("Radio")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(1) = True"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

191
How do I display checkboxes for all cells in the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Check").Def(0) = .t.
var_Column = oComboBox.Columns.Add("Check")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(0) = True"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

190
How can I display a tooltip when the cursor hovers the column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("tooltip").ToolTip = "This is a bit of text that is shown when user hovers the column."
var_Column = oComboBox.Columns.Add("tooltip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `This is a bit of text that is shown when user hovers the column.`"


189
Is there any function to assign a key to a column instead using its name or capion

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Data").Key = "DKey"
var_Column = oComboBox.Columns.Add("Data")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Key = `DKey`"

' oComboBox.Columns.Item("DKey").Caption = "new caption"
var_Column1 = oComboBox.Columns.Item("DKey")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Caption = `new caption`"


188
Is there any function to assign any extra data to a column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Data").Data = "your extra data"
var_Column = oComboBox.Columns.Add("Data")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Data = `your extra data`"


187
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Sort").DefaultSortOrder = .t.
var_Column = oComboBox.Columns.Add("Sort")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.DefaultSortOrder = True"


186
How can I specify the maximum width for the column, if I use WidthAutoResize property

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.Columns.Add("Auto")
	var_Column.WidthAutoResize = .t.
	var_Column.MinWidthAutoResize = 32
	var_Column.MaxWidthAutoResize = 128
oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

185
How can I specify the minimum width for the column, if I use WidthAutoResize property

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.Columns.Add("Auto")
	var_Column.WidthAutoResize = .t.
	var_Column.MinWidthAutoResize = 32
oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

184
Is there any option to resize the column based on its data, captions

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("A").WidthAutoResize = .t.
var_Column = oComboBox.Columns.Add("A")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.WidthAutoResize = True"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

183
How can I align the icon in the column's header in the center

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column = oComboBox.Columns.Add("")
	var_Column.HeaderImage = 1
	var_Column.HeaderImageAlignment = 1

182
How do I align the icon in the column's header to the right

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column = oComboBox.Columns.Add("ColumnName")
	var_Column.HeaderImage = 1
	var_Column.HeaderImageAlignment = 2

181
How do I show or hide the sorting icons, but still need sorting

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Sorted").SortOrder = 1
var_Column = oComboBox.Columns.Add("Sorted")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.SortOrder = 1"

oComboBox.Columns.Item(0).DisplaySortIcon = .f.

180
How do I enable or disable the entire column

Dim oComboBox as P
Dim var_Column as local
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Columns.Add("C1")
' oComboBox.Columns.Add("Disabled").Enabled = .f.
var_Column = oComboBox.Columns.Add("Disabled")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Enabled = False"

var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem(0),1) = "0.1"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(0),1) = `0.1`"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem(1),1) = "1.1"
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(1),1) = `1.1`"


179
How do I disable drag and drop columns

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("C1").AllowDragging = .f.
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.AllowDragging = False"

' oComboBox.Columns.Add("C2").AllowDragging = .f.
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.AllowDragging = False"


178
How do I disable resizing a column at runtime

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Unsizable").AllowSizing = .f.
var_Column = oComboBox.Columns.Add("Unsizable")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.AllowSizing = False"

oComboBox.Columns.Add("C2")
oComboBox.Columns.Add("C3")
oComboBox.Columns.Add("C4")

177
How can I align the column to the right, and its caption too

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.Columns.Add("Column")
	var_Column.Alignment = 2
	var_Column.HeaderAlignment = 2
oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

176
How can I align the column to the right

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Column").Alignment = 2
var_Column = oComboBox.Columns.Add("Column")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Alignment = 2"

oComboBox.Items.AddItem(0)
oComboBox.Items.AddItem(1)

175
How do I change the column's caption

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Column").Caption = "new caption"
var_Column = oComboBox.Columns.Add("Column")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Caption = `new caption`"


174
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it

Dim oComboBox as P
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "FormatAnchor(False) = `<b><u><fgcolor=880000> </fgcolor></u></b>`" // oComboBox.FormatAnchor(.f.) = "<b><u><fgcolor=880000> </fgcolor></u></b>"
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	' var_Items.CellCaptionFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaptionFormat(AddItem(`Just an <a1>anchor</a> element ...`),0) = 1"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaptionFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaptionFormat(AddItem(`Just another <a2>anchor</a> element ...`),0) = 1"

oComboBox.Items.AddItem("next item")

173
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions

Dim oComboBox as P
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "FormatAnchor(True) = `<b><u><fgcolor=FF0000> </fgcolor></u></b>`" // oComboBox.FormatAnchor(.t.) = "<b><u><fgcolor=FF0000> </fgcolor></u></b>"
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	' var_Items.CellCaptionFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaptionFormat(AddItem(`Just an <a1>anchor</a> element ...`),0) = 1"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaptionFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0) = 1
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaptionFormat(AddItem(`Just another <a2>anchor</a> element ...`),0) = 1"


172
Can I change the font for the tooltip

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipDelay = 1
oComboBox.ToolTipWidth = 364
' oComboBox.Columns.Add("tootip").ToolTip = "<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>`"


171
Can I change the font for the tooltip

Dim oComboBox as P
Dim var_Column as local
Dim var_StdFont as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipDelay = 1
var_StdFont = oComboBox.ToolTipFont
	var_StdFont.Name = "Tahoma"
	var_StdFont.Size = 14
oComboBox.ToolTipWidth = 364
' oComboBox.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


170
Can I change the order of the buttons in the scroll bar

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollOrderParts(1) = `t,l,r`" // oComboBox.ScrollOrderParts(1) = "t,l,r"
oComboBox.Template = "ScrollOrderParts(0) = `t,l,r`" // oComboBox.ScrollOrderParts(0) = "t,l,r"

169
The thumb size seems to be very small. Can I make it bigger

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ColumnAutoResize = .f.
' oComboBox.Columns.Add("C1").Width = 256
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 256"

' oComboBox.Columns.Add("C2").Width = 256
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Width = 256"

' oComboBox.Columns.Add("C3").Width = 256
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.Width = 256"

oComboBox.Template = "ScrollThumbSize(1) = 64" // oComboBox.ScrollThumbSize(1) = 64

168
How can I display my text on the scroll bar, using a different font

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollPartCaption(1,256) = `This is <s><font Tahoma;12> just </font></s> text`" // oComboBox.ScrollPartCaption(1,256) = "This is <s><font Tahoma;12> just </font></s> text"
oComboBox.ColumnAutoResize = .f.
oComboBox.ScrollHeight = 20
' oComboBox.Columns.Add("C1").Width = 256
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 256"

' oComboBox.Columns.Add("C2").Width = 256
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Width = 256"

' oComboBox.Columns.Add("C3").Width = 256
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.Width = 256"


167
How can I display my text on the scroll bar, using a different font

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_StdFont as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollPartCaption(1,256) = `This is just a text`" // oComboBox.ScrollPartCaption(1,256) = "This is just a text"
' oComboBox.ScrollFont(1).Size = 12
var_StdFont = oComboBox.ScrollFont(1)
oComboBox.TemplateDef = "dim var_StdFont"
oComboBox.TemplateDef = var_StdFont
oComboBox.Template = "var_StdFont.Size = 12"

oComboBox.ColumnAutoResize = .f.
oComboBox.ScrollHeight = 20
' oComboBox.Columns.Add("C1").Width = 256
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 256"

' oComboBox.Columns.Add("C2").Width = 256
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Width = 256"

' oComboBox.Columns.Add("C3").Width = 256
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.Width = 256"


166
How can I display my text on the scroll bar

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollPartCaption(1,256) = `this is just a text`" // oComboBox.ScrollPartCaption(1,256) = "this is just a text"
oComboBox.ColumnAutoResize = .f.
' oComboBox.Columns.Add("C1").Width = 256
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 256"

' oComboBox.Columns.Add("C2").Width = 256
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Width = 256"

' oComboBox.Columns.Add("C3").Width = 256
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.Width = 256"


165
How do I enlarge or change the size of the control's scrollbars

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ScrollHeight = 18
oComboBox.ScrollWidth = 18
oComboBox.ScrollButtonWidth = 18
oComboBox.ScrollButtonHeight = 18

164
How do I assign a tooltip to a scrollbar

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollToolTip(1) = `This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar`" // oComboBox.ScrollToolTip(1) = "This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar"
oComboBox.ColumnAutoResize = .f.
' oComboBox.Columns.Add("C1").Width = 256
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 256"

' oComboBox.Columns.Add("C2").Width = 256
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.Width = 256"

' oComboBox.Columns.Add("C3").Width = 256
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.Width = 256"


163
How do I assign an icon to the button in the scrollbar

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oComboBox.Template = "ScrollPartVisible(1,32768) = True" // oComboBox.ScrollPartVisible(1,32768) = .t.
oComboBox.Template = "ScrollPartCaption(1,32768) = `<img>1</img>`" // oComboBox.ScrollPartCaption(1,32768) = "<img>1</img>"
oComboBox.ScrollHeight = 18
oComboBox.ScrollButtonWidth = 18

162
I need to add a button in the scroll bar. Is this possible

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollPartVisible(1,32768) = True" // oComboBox.ScrollPartVisible(1,32768) = .t.
oComboBox.Template = "ScrollPartCaption(1,32768) = `1`" // oComboBox.ScrollPartCaption(1,32768) = "1"

161
Can I display an additional buttons in the scroll bar

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "ScrollPartVisible(1,32768) = True" // oComboBox.ScrollPartVisible(1,32768) = .t.
oComboBox.Template = "ScrollPartVisible(1,16384) = True" // oComboBox.ScrollPartVisible(1,16384) = .t.
oComboBox.Template = "ScrollPartVisible(1,1) = True" // oComboBox.ScrollPartVisible(1,1) = .t.
oComboBox.Template = "ScrollPartVisible(1,2) = True" // oComboBox.ScrollPartVisible(1,2) = .t.

160
How can I display a custom size picture to a cell or item

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.DefaultItemHeight = 48
oComboBox.Columns.Add("C1")
var_Items = oComboBox.Items
	' var_Items.CellPicture(var_Items.AddItem("Text"),0) = oComboBox.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellPicture(AddItem(`Text`),0) = Me.ExecuteTemplate(`loadpicture(``c:\exontrol\images\zipdisk.gif``)`)"


159
How can I display a multiple pictures to a cell or item

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.DefaultItemHeight = 48
oComboBox.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oComboBox.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oComboBox.Template = "HTMLPicture(`pic2`) = `c:\exontrol\images\auction.gif`" // oComboBox.HTMLPicture("pic2") = "c:\exontrol\images\auction.gif"
oComboBox.Columns.Add("C1")
var_Items = oComboBox.Items
	' var_Items.CellCaptionFormat(var_Items.AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaptionFormat(AddItem(`<img>pic1</img> Text <img>pic2</img> another text ...`),0) = 1"


158
How do I change the column's foreground color for numbers between an interval - Range

Dim oComboBox as P
Dim var_ConditionalFormat as P
Dim var_Items as P
Dim var_Items1 as P
Dim var_Items2 as P
Dim var_Items3 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 2 and %0 <= 10")
	var_ConditionalFormat.Bold = .t.
	var_ConditionalFormat.ForeColor = 255
	var_ConditionalFormat.ApplyTo = 1 '1 + 
oComboBox.Columns.Add("N1")
oComboBox.Columns.Add("N2")
var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem(1),1) = 2
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(1),1) = 2"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem(3),1) = 3
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(3),1) = 3"

var_Items2 = oComboBox.Items
	' var_Items2.CellCaption(var_Items2.AddItem(10),1) = 11
	oComboBox.TemplateDef = "dim var_Items2"
	oComboBox.TemplateDef = var_Items2
	oComboBox.Template = "var_Items2.CellCaption(AddItem(10),1) = 11"

var_Items3 = oComboBox.Items
	' var_Items3.CellCaption(var_Items3.AddItem(13),1) = 31
	oComboBox.TemplateDef = "dim var_Items3"
	oComboBox.TemplateDef = var_Items3
	oComboBox.Template = "var_Items3.CellCaption(AddItem(13),1) = 31"

oComboBox.SearchColumnIndex = 1

157
How do I change the item's foreground color for numbers between an interval - Range

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 >= 2 and %0 <= 10").ForeColor = 255
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 2 and %0 <= 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.ForeColor = 255"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

156
How do I change the item's background color for numbers less than a value

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 < 10").BackColor = 255
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 < 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.BackColor = 255"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

155
How do I underline the numbers greater than a value

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 >= 10").Underline = .t.
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.Underline = True"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

154
How do I highlight in italic the numbers greater than a value

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 >= 10").StrikeOut = .t.
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.StrikeOut = True"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

153
How do I highlight in italic the numbers greater than a value

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 >= 10").Italic = .t.
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.Italic = True"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

152
How do I highlight in bold the numbers greater than a value

Dim oComboBox as P
Dim var_ConditionalFormat as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.ConditionalFormats.Add("%0 >= 10").Bold = .t.
var_ConditionalFormat = oComboBox.ConditionalFormats.Add("%0 >= 10")
oComboBox.TemplateDef = "dim var_ConditionalFormat"
oComboBox.TemplateDef = var_ConditionalFormat
oComboBox.Template = "var_ConditionalFormat.Bold = True"

oComboBox.Columns.Add("Numbers")
oComboBox.Items.AddItem(1)
oComboBox.Items.AddItem(2)
oComboBox.Items.AddItem(10)
oComboBox.Items.AddItem(20)

151
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons

Dim h as N
Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.LinesAtRoot = 1
oComboBox.HasButtons = 4
oComboBox.Template = "HasButtonsCustom(0) = 16777216" // oComboBox.HasButtonsCustom(.f.) = 16777216
oComboBox.Template = "HasButtonsCustom(1) = 33554432" // oComboBox.HasButtonsCustom(.t.) = 33554432
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	h = var_Items.AddItem("Root 1")
	var_Items.InsertItem(h,,"Child 1")
	var_Items.InsertItem(h,,"Child 2")
	' var_Items.ExpandItem(h) = .t.
	oComboBox.TemplateDef = "dim var_Items,h"
	oComboBox.TemplateDef = var_Items
	oComboBox.TemplateDef = h
	oComboBox.Template = "var_Items.ExpandItem(h) = True"

	h = var_Items.AddItem("Root 2")
	var_Items.InsertItem(h,,"Child")

150
Can I use your EBN files to change the visual appearance for radio buttons

Dim oComboBox as P
Dim var_Column as local
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.Template = "RadioImage(0) = 16777216" // oComboBox.RadioImage(.f.) = 16777216
oComboBox.Template = "RadioImage(1) = 33554432" // oComboBox.RadioImage(.t.) = 33554432
' oComboBox.Columns.Add("Radio").Def(1) = .t.
var_Column = oComboBox.Columns.Add("Radio")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(1) = True"

var_Items = oComboBox.Items
	var_Items.AddItem("Radio 1")
	' var_Items.CellState(var_Items.AddItem("Radio 2"),0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellState(AddItem(`Radio 2`),0) = 1"

	var_Items.AddItem("Radio 3")

149
Can I use your EBN files to change the visual appearance for checkbox cells

Dim oComboBox as P
Dim var_Column as local
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.Template = "CheckImage(0) = 16777216" // oComboBox.CheckImage(0) = 16777216
oComboBox.Template = "CheckImage(1) = 33554432" // oComboBox.CheckImage(1) = 33554432
' oComboBox.Columns.Add("Check").Def(0) = .t.
var_Column = oComboBox.Columns.Add("Check")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(0) = True"

var_Items = oComboBox.Items
	var_Items.AddItem("Check 1")
	' var_Items.CellState(var_Items.AddItem("Check 2"),0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellState(AddItem(`Check 2`),0) = 1"


148
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

Dim oComboBox as P
Dim var_Column as local
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
oComboBox.Template = "Background(388) = 16777216" // oComboBox.Background(388) = 16777216
oComboBox.Template = "Background(389) = 33554432" // oComboBox.Background(389) = 33554432
oComboBox.Template = "Background(391) = 50331648" // oComboBox.Background(391) = 50331648
oComboBox.Template = "Background(260) = 16777216" // oComboBox.Background(260) = 16777216
oComboBox.Template = "Background(261) = 33554432" // oComboBox.Background(261) = 33554432
oComboBox.Template = "Background(263) = 50331648" // oComboBox.Background(263) = 50331648
oComboBox.ColumnAutoResize = .f.
oComboBox.ScrollBySingleLine = .t.
' oComboBox.Columns.Add("S").Width = 483
var_Column = oComboBox.Columns.Add("S")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 483"

var_Items = oComboBox.Items
	' var_Items.ItemHeight(var_Items.AddItem("Item 1")) = 248
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.ItemHeight(AddItem(`Item 1`)) = 248"

oComboBox.Items.AddItem("Item 2")

147
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
oComboBox.Template = "Background(388) = 16777216" // oComboBox.Background(388) = 16777216
oComboBox.Template = "Background(389) = 33554432" // oComboBox.Background(389) = 33554432
oComboBox.Template = "Background(391) = 50331648" // oComboBox.Background(391) = 50331648
oComboBox.ColumnAutoResize = .f.
' oComboBox.Columns.Add("S").Width = 483
var_Column = oComboBox.Columns.Add("S")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 483"


146
I've seen that you can change the visual appearance for the scroll bar. How can I do that

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local
Dim var_Column5 as local
Dim var_Column6 as local
Dim var_Column7 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
oComboBox.Template = "Background(324) = 16777216" // oComboBox.Background(324) = 16777216
oComboBox.Template = "Background(325) = 33554432" // oComboBox.Background(325) = 33554432
oComboBox.Template = "Background(327) = 50331648" // oComboBox.Background(327) = 50331648
oComboBox.Template = "Background(404) = 15790320" // oComboBox.Background(404) = 15790320
oComboBox.Template = "Background(276) = 15790320" // oComboBox.Background(276) = 15790320
oComboBox.Template = "Background(511) = 15790320" // oComboBox.Background(511 'exHSBackH + exToolTipAppearance + exCursorHoverColumn + exDateHeader) = 15790320
' oComboBox.Columns.Add("S").Width = 32
var_Column = oComboBox.Columns.Add("S")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 32"

' oComboBox.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oComboBox.Columns.Add("Level 1")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.LevelKey = 1"

' oComboBox.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oComboBox.Columns.Add("Level 2")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.LevelKey = 1"

' oComboBox.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oComboBox.Columns.Add("Level 3")
oComboBox.TemplateDef = "dim var_Column3"
oComboBox.TemplateDef = var_Column3
oComboBox.Template = "var_Column3.LevelKey = 1"

' oComboBox.Columns.Add("E1").Width = 32
var_Column4 = oComboBox.Columns.Add("E1")
oComboBox.TemplateDef = "dim var_Column4"
oComboBox.TemplateDef = var_Column4
oComboBox.Template = "var_Column4.Width = 32"

' oComboBox.Columns.Add("E2").Width = 32
var_Column5 = oComboBox.Columns.Add("E2")
oComboBox.TemplateDef = "dim var_Column5"
oComboBox.TemplateDef = var_Column5
oComboBox.Template = "var_Column5.Width = 32"

' oComboBox.Columns.Add("E3").Width = 32
var_Column6 = oComboBox.Columns.Add("E3")
oComboBox.TemplateDef = "dim var_Column6"
oComboBox.TemplateDef = var_Column6
oComboBox.Template = "var_Column6.Width = 32"

' oComboBox.Columns.Add("E4").Width = 32
var_Column7 = oComboBox.Columns.Add("E4")
oComboBox.TemplateDef = "dim var_Column7"
oComboBox.TemplateDef = var_Column7
oComboBox.Template = "var_Column7.Width = 32"

oComboBox.ColumnAutoResize = .f.

145
Is there any option to highligth the column from the cursor - point

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local
Dim var_Column4 as local
Dim var_Column5 as local
Dim var_Column6 as local
Dim var_Column7 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.Template = "Background(32) = 16777216" // oComboBox.Background(32) = 16777216
' oComboBox.Columns.Add("S").Width = 32
var_Column = oComboBox.Columns.Add("S")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 32"

' oComboBox.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oComboBox.Columns.Add("Level 1")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.LevelKey = 1"

' oComboBox.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oComboBox.Columns.Add("Level 2")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.LevelKey = 1"

' oComboBox.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oComboBox.Columns.Add("Level 3")
oComboBox.TemplateDef = "dim var_Column3"
oComboBox.TemplateDef = var_Column3
oComboBox.Template = "var_Column3.LevelKey = 1"

' oComboBox.Columns.Add("E1").Width = 32
var_Column4 = oComboBox.Columns.Add("E1")
oComboBox.TemplateDef = "dim var_Column4"
oComboBox.TemplateDef = var_Column4
oComboBox.Template = "var_Column4.Width = 32"

' oComboBox.Columns.Add("E2").Width = 32
var_Column5 = oComboBox.Columns.Add("E2")
oComboBox.TemplateDef = "dim var_Column5"
oComboBox.TemplateDef = var_Column5
oComboBox.Template = "var_Column5.Width = 32"

' oComboBox.Columns.Add("E3").Width = 32
var_Column6 = oComboBox.Columns.Add("E3")
oComboBox.TemplateDef = "dim var_Column6"
oComboBox.TemplateDef = var_Column6
oComboBox.Template = "var_Column6.Width = 32"

' oComboBox.Columns.Add("E4").Width = 32
var_Column7 = oComboBox.Columns.Add("E4")
oComboBox.TemplateDef = "dim var_Column7"
oComboBox.TemplateDef = var_Column7
oComboBox.Template = "var_Column7.Width = 32"


144
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.Template = "Background(20) = 16777216" // oComboBox.Background(20) = 16777216
oComboBox.Template = "Background(21) = 1316095" // oComboBox.Background(21) = 1316095
' oComboBox.Columns.Add("Filter").DisplayFilterButton = .t.
var_Column = oComboBox.Columns.Add("Filter")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.DisplayFilterButton = True"


143
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.Template = "Background(8) = 16777216" // oComboBox.Background(8) = 16777216
oComboBox.Template = "Background(9) = 16777216" // oComboBox.Background(9) = 16777216
oComboBox.Template = "Background(10) = 33554432" // oComboBox.Background(10) = 33554432
oComboBox.Template = "Background(11) = 16777216" // oComboBox.Background(11) = 16777216
oComboBox.Template = "Background(12) = 15132390" // oComboBox.Background(12) = 15132390
oComboBox.Template = "Background(13) = 15132390" // oComboBox.Background(13) = 15132390
oComboBox.Template = "Background(14) = 16777216" // oComboBox.Background(14) = 16777216
var_Column = oComboBox.Columns.Add("Date")
	var_Column.FilterType = 4
	var_Column.DisplayFilterButton = .t.
	var_Column.DisplayFilterDate = .t.

142
How do I change the visual aspect of the close button in the filter bar, using EBN

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.Template = "Background(1) = 16777216" // oComboBox.Background(1) = 16777216
' oComboBox.Columns.Add("Filter").FilterType = 1
var_Column = oComboBox.Columns.Add("Filter")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.FilterType = 1"

oComboBox.ApplyFilter()

141
How do I change the visual aspect of buttons in the cell, using EBN

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.Template = "Background(2) = 16777216" // oComboBox.Background(2) = 16777216
oComboBox.Template = "Background(3) = 33554432" // oComboBox.Background(3) = 33554432
oComboBox.SelForeColor = 0
oComboBox.ShowFocusRect = .f.
' oComboBox.Columns.Add("Column 1").Def(2) = .t.
var_Column = oComboBox.Columns.Add("Column 1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Def(2) = True"

oComboBox.Items.AddItem("Button 1")
oComboBox.Items.AddItem("Button 2")
oComboBox.Columns.Add("Column 2")

140
How do I change the visual aspect of the drop down filter button, using EBN

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.Template = "Background(0) = 16777216" // oComboBox.Background(0) = 16777216
' oComboBox.Columns.Add("Filter").DisplayFilterButton = .t.
var_Column = oComboBox.Columns.Add("Filter")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.DisplayFilterButton = True"


139
Is there any function to get the control's data in your x-script format / template

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Columns.Add("Column")
oComboBox.Items.AddItem("ToTemplate()")

138
How do I enable resizing the columns at runtime

Dim oComboBox as P
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ColumnsAllowSizing = .t.
oComboBox.MarkSearchColumn = .f.
oComboBox.HeaderVisible = .f.
oComboBox.Columns.Add("Column 1")
oComboBox.Columns.Add("Column 2")
oComboBox.DrawGridLines = 2
var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem("Item 1"),1) = "Sub Item 1"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(`Item 1`),1) = `Sub Item 1`"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem("Item 2"),1) = "Sub Item 2"
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(`Item 2`),1) = `Sub Item 2`"


137
How do I enable resizing ( changing the height ) the items at runtime

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ItemsAllowSizing = .t.
oComboBox.ScrollBySingleLine = .t.
oComboBox.Columns.Add("Column")
oComboBox.Items.AddItem("Item 1")
var_Items = oComboBox.Items
	' var_Items.ItemHeight(var_Items.AddItem("Item 2")) = 48
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.ItemHeight(AddItem(`Item 2`)) = 48"

oComboBox.Items.AddItem("Item 3")

136
How can I sort by multiple columns

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SingleSort = .f.
' oComboBox.Columns.Add("C1").SortOrder = 1
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.SortOrder = 1"

' oComboBox.Columns.Add("C2").SortOrder = 2
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.SortOrder = 2"

' oComboBox.Columns.Add("C3").SortOrder = 1
var_Column2 = oComboBox.Columns.Add("C3")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.SortOrder = 1"


135
How can I add several columns to control's sort bar

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.SortBarColumnWidth = 48
' oComboBox.Columns.Add("C1").SortOrder = 1
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.SortOrder = 1"

' oComboBox.Columns.Add("C2").SortOrder = 2
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.SortOrder = 2"


134
How can I change the width of the columns being displayed in the sort bar

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.SortBarColumnWidth = 48
' oComboBox.Columns.Add("C1").SortOrder = 1
var_Column = oComboBox.Columns.Add("C1")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.SortOrder = 1"

' oComboBox.Columns.Add("C2").SortOrder = 2
var_Column1 = oComboBox.Columns.Add("C2")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.SortOrder = 2"


133
How can I change the height of the sort bar's

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.SortBarHeight = 48

132
How can I change the sort bar's foreground color

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.ForeColorSortBar = 255

131
How can I change the visual appearance of the control's sort bar, using EBN files

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oComboBox.SortBarVisible = .t.
oComboBox.BackColorSortBar = 16777216
oComboBox.BackColorSortBarCaption = 33554432
oComboBox.Appearance = 0

130
How can I change the sort bar's background color

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.BackColorSortBar = 255
oComboBox.BackColorSortBarCaption = 128

129
How can I change the default caption being displayed in the control's sort bar

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.
oComboBox.SortBarCaption = "new caption"

128
How can I show the locked / fixed items on the bottom side of the control

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ShowLockedItems = .t.
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	' var_Items.LockedItemCount(1) = 2
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.LockedItemCount(1) = 2"

	' var_Items.CellCaption(var_Items.LockedItem(1,0),0) = "locked item 1"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(LockedItem(1,0),0) = `locked item 1`"

	' var_Items.CellCaption(var_Items.LockedItem(1,1),0) = "locked item 2"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(LockedItem(1,1),0) = `locked item 2`"

	var_Items.AddItem("un-locked item")

127
How can I show the locked / fixed items

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ShowLockedItems = .t.
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	' var_Items.LockedItemCount(0) = 2
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.LockedItemCount(0) = 2"

	' var_Items.CellCaption(var_Items.LockedItem(0,0),0) = "locked item 1"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(LockedItem(0,0),0) = `locked item 1`"

	' var_Items.CellCaption(var_Items.LockedItem(0,1),0) = "locked item 2"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(LockedItem(0,1),0) = `locked item 2`"

	var_Items.AddItem("un-locked item")

126
How can I hide the locked / fixed items

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ShowLockedItems = .f.
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	' var_Items.LockedItemCount(0) = 1
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.LockedItemCount(0) = 1"

	' var_Items.CellCaption(var_Items.LockedItem(0,0),0) = "locked item"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(LockedItem(0,0),0) = `locked item`"

	var_Items.AddItem("un-locked item")

125
How can I show the control's sort bar

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.SortBarVisible = .t.

124
How can I change the header's background color, when multiple levels are displayed

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Column2 as local
Dim var_Column3 as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.BackColorLevelHeader = 250
' oComboBox.Columns.Add("S").Width = 32
var_Column = oComboBox.Columns.Add("S")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Width = 32"

' oComboBox.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oComboBox.Columns.Add("Level 1")
oComboBox.TemplateDef = "dim var_Column1"
oComboBox.TemplateDef = var_Column1
oComboBox.Template = "var_Column1.LevelKey = 1"

' oComboBox.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oComboBox.Columns.Add("Level 2")
oComboBox.TemplateDef = "dim var_Column2"
oComboBox.TemplateDef = var_Column2
oComboBox.Template = "var_Column2.LevelKey = 1"

' oComboBox.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oComboBox.Columns.Add("Level 3")
oComboBox.TemplateDef = "dim var_Column3"
oComboBox.TemplateDef = var_Column3
oComboBox.Template = "var_Column3.LevelKey = 1"


123
How do I expand automatically the items while user types characters to searching for something ( incremental searching )

Dim oComboBox as P
Dim var_Column as local
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ExpandOnSearch = .t.
oComboBox.LinesAtRoot = -1
oComboBox.AutoSearch = .t.
' oComboBox.Columns.Add("Column").AutoSearch = 1
var_Column = oComboBox.Columns.Add("Column")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.AutoSearch = 1"

var_Items = oComboBox.Items
	var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),,"some text"),,"another text")
	var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),,"some text"),,"another text")

122
Do you have some function to load data from a safe array

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Columns.Add("Column")
oComboBox.Items.AddItem(0)
oComboBox.PutItems(oComboBox.GetItems(0))

121
Do you have some function to retrieve all items to a safe array

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Columns.Add("Column")
oComboBox.Items.AddItem(0)
oComboBox.PutItems(oComboBox.GetItems(0))
oComboBox.Items.AddItem(1)
oComboBox.PutItems(oComboBox.GetItems(0))
oComboBox.Items.AddItem(2)
oComboBox.PutItems(oComboBox.GetItems(0))
oComboBox.Items.AddItem(3)

120
How can I hide a column

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
' oComboBox.Columns.Add("Hidden").Visible = .f.
var_Column = oComboBox.Columns.Add("Hidden")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.Visible = False"

oComboBox.Columns.Add("2")
oComboBox.Columns.Add("3")
oComboBox.Columns.Add("4")
oComboBox.Columns.Add("5")

119
I've seen that the width of the tooltip is variable. Can I make it larger

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipWidth = 328
' oComboBox.Columns.Add("tootip").ToolTip = "this is a tooltip that should be very very very very very very very long"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `this is a tooltip that should be very very very very very very very long`"


118
How do I disable showing the tooltip for all control
Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipDelay = 0
' oComboBox.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


117
How do I let the tooltip being displayed longer

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipPopDelay = 10000
' oComboBox.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


116
How do I show the tooltip quicker

Dim oComboBox as P
Dim var_Column as local

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.ToolTipDelay = 1
' oComboBox.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
var_Column = oComboBox.Columns.Add("tootip")
oComboBox.TemplateDef = "dim var_Column"
oComboBox.TemplateDef = var_Column
oComboBox.Template = "var_Column.ToolTip = `this is a tooltip assigned to a column`"


115
How do I change the caption being displayed in the control's filter bar

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarCaption = "your filter caption"
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

114
How do I search case sensitive, using your incremental search feature

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Columns as P
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.AutoSearch = .t.
oComboBox.ASCIILower = ""
var_Columns = oComboBox.Columns
	' var_Columns.Add("exStartWith").AutoSearch = 0
	var_Column = var_Columns.Add("exStartWith")
	oComboBox.TemplateDef = "dim var_Column"
	oComboBox.TemplateDef = var_Column
	oComboBox.Template = "var_Column.AutoSearch = 0"

	' var_Columns.Add("exContains").AutoSearch = 1
	var_Column1 = var_Columns.Add("exContains")
	oComboBox.TemplateDef = "dim var_Column1"
	oComboBox.TemplateDef = var_Column1
	oComboBox.Template = "var_Column1.AutoSearch = 1"

var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem("text"),1) = "another text"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(`text`),1) = `another text`"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem("text"),1) = "another text"
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(`text`),1) = `another text`"


113
How do I disable the control

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Enabled = .f.

112
How do I enable the incremental search feature within a column

Dim oComboBox as P
Dim var_Column as local
Dim var_Column1 as local
Dim var_Columns as P
Dim var_Items as P
Dim var_Items1 as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.AutoSearch = .t.
var_Columns = oComboBox.Columns
	' var_Columns.Add("exStartWith").AutoSearch = 0
	var_Column = var_Columns.Add("exStartWith")
	oComboBox.TemplateDef = "dim var_Column"
	oComboBox.TemplateDef = var_Column
	oComboBox.Template = "var_Column.AutoSearch = 0"

	' var_Columns.Add("exContains").AutoSearch = 1
	var_Column1 = var_Columns.Add("exContains")
	oComboBox.TemplateDef = "dim var_Column1"
	oComboBox.TemplateDef = var_Column1
	oComboBox.Template = "var_Column1.AutoSearch = 1"

var_Items = oComboBox.Items
	' var_Items.CellCaption(var_Items.AddItem("text"),1) = "another text"
	oComboBox.TemplateDef = "dim var_Items"
	oComboBox.TemplateDef = var_Items
	oComboBox.Template = "var_Items.CellCaption(AddItem(`text`),1) = `another text`"

var_Items1 = oComboBox.Items
	' var_Items1.CellCaption(var_Items1.AddItem("text"),1) = "another text"
	oComboBox.TemplateDef = "dim var_Items1"
	oComboBox.TemplateDef = var_Items1
	oComboBox.Template = "var_Items1.CellCaption(AddItem(`text`),1) = `another text`"


111
How do I call your x-script language

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.ExecuteTemplate("Columns.Add(`Column`)")
	var_Column.HeaderStrikeOut = .t.
	var_Column.HeaderBold = .t.

110
How do I call your x-script language

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`"

109
How do I show alternate rows in different background color

Dim oComboBox as P
Dim var_Items as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.BackColorAlternate = 15790320
oComboBox.Columns.Add("Column")
var_Items = oComboBox.Items
	var_Items.AddItem("Item 1")
	var_Items.AddItem("Item 2")
	var_Items.AddItem("Item 3")
	var_Items.AddItem("Item 4")
	var_Items.AddItem("Item 5")

108
How do I enlarge the drop down filter window

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarDropDownHeight = "-320"
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterBarDropDownWidth = "-320"
oComboBox.Items.AddItem("Item 1")
oComboBox.Items.AddItem("Item 2")

107
How do I filter programatically the control

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 3
	var_Column.Filter = "Item*"
oComboBox.Items.AddItem("Item 1")
oComboBox.Items.AddItem("")
oComboBox.Items.AddItem("Item 2")
oComboBox.ApplyFilter()

106
How do I change the font of the control's filterbar

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarFont.Size = 20
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

105
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oComboBox.FilterBarBackColor = 16777216
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

104
How do I change the background color of the control's filterbar

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarBackColor = 15790320
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

103
How do I change the foreground color of the control's filterbar

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarForeColor = 255
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

102
How do I change the height of the control's filterbar

Dim oComboBox as P
Dim var_Column as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.FilterBarHeight = 32
var_Column = oComboBox.Columns.Add("Column")
	var_Column.DisplayFilterButton = .t.
	var_Column.FilterType = 1
oComboBox.ApplyFilter()

101
How do I change the header's foreground color

Dim oComboBox as P

oComboBox = topparent:CONTROL_ACTIVEX1.activex
oComboBox.HeaderForeColor = 255
oComboBox.Columns.Add("Column 1")
oComboBox.Columns.Add("Column 2")
oComboBox.Items.AddItem("Item 1")